
<?php $title_show = empty($datacontent['id']) ? "Add" : "Edit"; ?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/skin/back-end/css/chantable.css"/>
<h1>cate Management <span class="greysubheading"><?php echo $title_show; ?></span></h1>
<form id="news-form" action="" method="POST" enctype="multipart/form-data" name="form">
    <div id="c_wapper">
        <fieldset ><legend>Field:</legend>
            <table>
                <tbody>
                    <?php echo textfield('title', 'Tiêu đề', ((array_key_exists('title', $datacontent)) ? $datacontent['title'] : null)) ?>
                    <?php echo dropdown('parent_id', 'Danh Mục Cha', $cattree, ((array_key_exists('parent_id', $datacontent)) ? $datacontent['parent_id'] : null)) ?>
                </tbody>
            </table>
        </fieldset>
        <table>
            <tr>
                <td>

                    <button type="submit" id="button">Edit</button>
                    <button type="reset" id="reset" onClick="location.reload(true)" id="button">Reset</button>
                </td>
            </tr>
        </table>
    </div>
</form>
